Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add character spacing support to Text element #293

Open
wyshmily opened this issue Jan 25, 2019 · 6 comments
Open

add character spacing support to Text element #293

wyshmily opened this issue Jan 25, 2019 · 6 comments
Labels
API suggestion Early API idea and discussion, it is NOT ready for implementation Feature Request
Milestone

Comments

@wyshmily
Copy link

Is this hard?
Or how can I achieve this by myself?

@ptorr-msft ptorr-msft added the API suggestion Early API idea and discussion, it is NOT ready for implementation label Jan 28, 2019
@stevenbrix stevenbrix added this to the Future milestone Apr 4, 2019
@stevenbrix stevenbrix added the needs more information Not enough information has been provided. Please share more detail as requested label Apr 4, 2019
@stevenbrix
Copy link
Contributor

Thanks @wyshmily for filing this request! We could potentially start discussing the implementation of this once we've finished open sourcing the rest of the wpf codebase. Do you have an idea of what you'd like the API to look like?

@wyshmily
Copy link
Author

Just like Control.FontSizeProperty, TextBlock.FontSizeProperty, TextElement.FontSizeProperty,
I think there should be Control.LetterSpacingProperty, TextBlock.LetterSpacingProperty and TextElement.LetterSpacingProperty

<TextBlock LetterSpacing="5" Text="Some Text" />
<TextBox LetterSpacing="5" Text="Some Text" />
<Grid TextElement.LetterSpacing="5"></Grid>

@bsivanov
Copy link

bsivanov commented Jul 3, 2020

I think this was implemented in Silverlight, but I just can't find the API reference, it was somewhere here before: https://docs.microsoft.com/en-us/previous-versions/, maybe the API and some implementation could be reused.

@bsivanov
Copy link

bsivanov commented Jul 3, 2020

I think it was this one: Control.CharacterSpacing Property

@maxs
Copy link

maxs commented Nov 30, 2021

It still very demanding feature. Below sample from Figma.
image

@araghon007
Copy link

I'm also interested in how to achieve custom character spacing. All answers I found online either didn't take into account original kerning, or were far too complex or inefficient. I believe the best way would be to add (or subtract) to existing kerning, since kerning can be disabled using Typography.Kerning="False" if needed.

@pchaurasia14 pchaurasia14 removed the needs more information Not enough information has been provided. Please share more detail as requested label Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API suggestion Early API idea and discussion, it is NOT ready for implementation Feature Request
Projects
None yet
Development

No branches or pull requests

8 participants